package com.example.myapplication_2


//class ProgramExpert {
//    fun getLangue(feature: String): String{
//        when (feature){
//            "快速" -> return "c"
//            "容易" -> return "python"
//            "新语言" -> return "kotlin"
//            "面向对象" -> return "java"
//            else -> return "unkown"
//
//        }
//    }
//}

//简化版
class ProgramExpert {
    fun getLangue(feature: String)=when (feature){
            "快速" ->  "c"
            "容易" ->  "python"
            "新语言" ->  "kotlin"
            "面向对象" ->  "java"
            else ->  "unkown"

        }

}